package com.mialab.ManyToMany_demo.domain;

import java.io.Serializable;
import java.util.List;

public class Job implements Serializable {
	private String job_id;
	private String job_name;
	private String job_task;

	// 这里假定，员工和工作岗位（角色）是多对多的关系，
	// 每一个员工可有多于一个的工作岗位（角色），每个工作岗位（角色）可有多个员工
	private List<Employee> employees;

	public String getJob_id() {
		return job_id;
	}

	public void setJob_id(String job_id) {
		this.job_id = job_id;
	}

	public String getJob_name() {
		return job_name;
	}

	public void setJob_name(String job_name) {
		this.job_name = job_name;
	}

	public String getJob_task() {
		return job_task;
	}

	public void setJob_task(String job_task) {
		this.job_task = job_task;
	}

	public List<Employee> getEmployees() {
		return employees;
	}

	public void setEmployees(List<Employee> employees) {
		this.employees = employees;
	}

	@Override
	public String toString() {
		return "Job [job_id=" + job_id + ", job_name=" + job_name + ", job_task=" + job_task + "]";
	}	

}
